package com.kajespero.dao.page.impl;

import com.kajespero.dao.commons.impl.AbstractReadWriteDAO;
import com.kajespero.dao.page.PageDAO;
import com.kajespero.model.PageBean;

public class PageDAOImpl extends AbstractReadWriteDAO<PageBean, Long> implements PageDAO{

	@Override
	public PageBean createNewBean() throws InstantiationException,IllegalAccessException {
		PageBean page = new PageBean();
		page.setId(nextId());
		page.setKey(createKey(page.getId()));
		return page;
	}
}
